package com.tz.fruit.service;


import com.tz.fruit.entity.PageBean;

import com.tz.fruit.entity.User;

/**
 * Created by Administrator on 2017/7/20.
 */
public interface IUserService {
    void save(User u);

    User findByUsername(String username);
    /**
     * 根据用户名来修改state的值.每次都是加1.
     */
    public void updateStatus(String username);

    /**
     * 分页进行查询
     */
    PageBean<User> findByPage(String username,Long pageNow,Long pageSize);
    /**
     * 更新用户
     */
    void update(User user);

}
